﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace EShop.Client
{
    public partial class frmLockInputPassword : frmBase
    {
        public frmLockInputPassword()
        {
            InitializeComponent();
        }
        private string strPassword = string.Empty;
        private void frmLockInputPassword_Load(object sender, EventArgs e)
        {

        }

        private void btnUnlock_Click(object sender, EventArgs e)
        {
            string password = txtInputPassword.Text.Trim();
            if (lockPassword.Equals(password))
            {
                this.DialogResult = DialogResult.OK;
            }
            else
            {
                MessageBox.Show("非法密码");
                this.txtInputPassword.SelectAll();
                this.txtInputPassword.Focus();
            }
        }
    }
}
